package com.cmcc.pp.ui.workorder;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;

import com.cmcc.pp.R;
import com.cmcc.pp.base.BActivity;

import butterknife.Bind;
import butterknife.OnClick;

/**
 * Created by ABC on 2017/12/26.
 * 工单详情
 */

public class WorkOrderDetailsActivity extends BActivity{
    @Bind(R.id.lin_workorderoperationnote)
    LinearLayout lin_workorderoperationnote;
    @Override
    protected boolean getHasTitle() {
        return true;
    }

    @Override
    public int getContentLayoutId() {
        return R.layout.activity_workorderdetatils;
    }

    @Override
    public void initView(Bundle savedInstanceState) {
        getHeader().setTitle(R.string.workorderdetails);
    }

    @Override
    public void loadData() {

    }

    @OnClick(R.id.lin_workorderoperationnote)
    public void onClick(View view){
        switch (view.getId()){
            case R.id.lin_workorderoperationnote:
                openOperationNote();
                break;
        }
    }

    //操作记录
    private void openOperationNote() {
        Intent noteIntent = new Intent(this,OperationNoteForWorkOrder.class);
        startActivity(noteIntent);
    }
}
